package rx.genarator.comprehension;

import java.util.HashMap;
import java.util.Map;

public class View extends TableOrView{
	
	private static Map<String ,View> map=new HashMap<String, View>();
	
	private static synchronized void addView(View view){
		map.put(view.getName(), view);
	}

	public static View getByName(String name){
		return map.get(name);
	}

	public View(DataBase dataBase, String id, String name, String code, String comment) {
		super(dataBase, id, name, code, comment);
		addView(this);	
	}

	
}
